import transaction from './transaction/config'
import media from './media/config'
import evidence from './evidence/config'
import counter from './counter/config'

const options = [
    {
        value: 'refresh',
        label: '刷新'
    },
    {
        value: 'batchdelete',
        label: '批量删除'
    }
]

const operations = [
    {
        label: '刷新',
        prop: 'refresh',
        icon: 'fa fa-refresh'
    },
    {
        label: '新增',
        prop: 'add',
        icon: 'fa fa-plus-circle'
    },
    {
        label: '编辑',
        prop: 'edit',
        icon: 'fa fa-edit'
    },
    {
        label: '删除',
        prop: 'delete',
        icon: 'fa fa-times-circle'
    }
]

const classFormItems = [
    {
        label: '分类名称',
        prop: 'name',
        name: 'input',
        type: 'text',
        validation: true
    },
    {
        label: '启用',
        prop: 'enabled',
        name: 'checkbox'
    },
    {
        label: '排序',
        prop: 'sequence',
        name: 'input',
        type: 'number',
        placeholder: '用于排序的数字，小的在前',
        validation: true
    }
]

export default {
    media: {
        ...media,
        options,
        operations,
        classFormItems
    },
    transaction: {
        ...transaction,
        options,
        operations,
        classFormItems
    },
    evidence: {
        ...evidence,
        options,
        operations,
        classFormItems
    },
    counter: {
        ...counter,
        options,
        operations
    }
}
